<?php


namespace app\home\model;


use think\Model;

class TransferOrderDetail extends Model
{
    public function outLocator()
    {
        return $this->hasMany(WarehouseDetail::class,'warehouse_id','out_id')
            ->where('status',1);
    }
    public function inLocator()
    {
        return $this->hasMany(WarehouseDetail::class,'warehouse_id','in_id')
            ->where('status',1);
    }
}